FROM centos:7


RUN yum install -y wget
RUN yum install -y java-1.7.0-openjdk
RUN yum install -y cronie


RUN wget http://datax-opensource.oss-cn-hangzhou.aliyuncs.com/datax.tar.gz -O /tmp/datax.tar.gz
RUN tar -zxf /tmp/datax.tar.gz -C /
# VOLUME /datax
# COPY datax /datax/


COPY ./entry-point.sh /
ENTRYPOINT ["/entry-point.sh"]